﻿
<section class="content-header">
    <h1>
        权限列表管理
    </h1>
    <ol class="breadcrumb">
        <li><a href="@Url.Action("Index", "Home")"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">VIU</li>
    </ol>
</section>

<section class="content">
    <div class="row">
        <div class="col-lg-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <div class="dataTable-tools btn-group">
                        @Html.Bootstrap().LinkButton("扫描", ToolBarIco.Create).Href(Url.Action("Scan"))
                    </div>
                    <div class="box-tools SearchArea">
                        <div class="input-group input-group-sm" style="width:150px;float:right;">
                            <input type="text" name="Name" class="form-control pull-right" placeholder="名称">

                            <div class="input-group-btn">
                                <button type="button" class="btn btn-default" onclick="window.app.search();"><i class="fa fa-search"></i></button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-body no-padding">
                    <div class="table-responsive">
                        <table id="dataTree" class="table table-bordered table-striped table-condensed table-hover">
                            <thead>
                                <tr>
                                    <th style="width:43px;" class="center"><label class="m-l m-t-none m-b-none i-checks"><input type="checkbox" /><i></i></label></th>
                                    <th style="width:340px;">名称</th>
                                    <th>备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                @{
                                    foreach (var item in Model)
                                    {
                                        <tr class="@item.Itemclass">
                                            <td style="width:43px;" class="center"><label class="m-l m-t-none m-b-none i-checks"><input type="checkbox" name="cellCheckbox" value="@item.Id" /><i></i></label></td>
                                            <td><a class="auto" data-toggle="ajaxModal" href="@Url.Action("Edit")/@item.Id">@item.Title</a></td>
                                            <td>@item.Remark</td>
                                        </tr>
                                    }
                                }
                            </tbody>
                        </table>

                    </div>

                </div>
            </div>


        </div>
    </div>
</section>

<script>
    $(document).ready(function () {
        $('#dataTree').treegrid({
            treeColumn: 1
        });

    });
</script>